package com.hs.sentinelr.handler;


import com.hs.sentinelr.config.RateLimitConfig;
import org.springframework.context.annotation.Import;

import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;


/**
 * 基于redis lua脚本限流开关
 */
@Target({ElementType.TYPE, ElementType.METHOD})
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Import(RateLimitConfig.class)
public @interface EnableRateLimit {
}
